<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>运行时配置</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="yar.installation.html">安装</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="yar.resources.html">资源类型</a></div>
 <div class="up"><a href="yar.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="yar.configuration" class="section">
 <h2 class="title">运行时配置</h2>
 <p class="simpara">
这些函数的行为受 <var class="filename">php.ini</var> 中的设置影响。
</p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>Yar 配置选项</strong></caption>
   
    <thead>
     <tr>
      <th>名字</th>
      <th>默认</th>
      <th>可修改范围</th>
      <th>更新日志</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="yar.configuration.html#ini.yar.packager" class="link">yar.packager</a></td>
      <td>php</td>
      <td>PHP_INI_SYSTEM</td>
      <td></td>
     </tr>

     <tr>
      <td><a href="yar.configuration.html#ini.yar.debug" class="link">yar.debug</a></td>
      <td>Off</td>
      <td>PHP_INI_ALL</td>
      <td></td>
     </tr>

     <tr>
      <td><a href="yar.configuration.html#ini.yar.connect-timeout" class="link">yar.connect_timeout</a></td>
      <td>1000</td>
      <td>PHP_INI_ALL</td>
      <td></td>
     </tr>

     <tr>
      <td><a href="yar.configuration.html#ini.yar.timeout" class="link">yar.timeout</a></td>
      <td>5000</td>
      <td>PHP_INI_ALL</td>
      <td></td>
     </tr>

     <tr>
      <td><a href="yar.configuration.html#ini.yar.expose-info" class="link">yar.expose_info</a></td>
      <td>On</td>
      <td>PHP_INI_SYS</td>
      <td></td>
     </tr>

    </tbody>
   
  </table>

 </p>

 <p class="para">这是配置指令的简短说明。</p>

 <p class="para">
  <dl>

   
     <dt id="ini.yar.packager">
      <em><code class="parameter">yar.packager</code></em>
      <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
     </dt>

     <dd>

      <p class="para">
       设置Yar的打包工具, 可以是PHP(serialize), JSON,
       Msgpack(这个需要编译的时候指定--enable-msgpack).
      </p>
     </dd>

    
    
     <dt id="ini.yar.debug">
      <em><code class="parameter">yar.debug</code></em>
      <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
     </dt>

     <dd>

      <p class="para">
       打开的时候, Yar会把请求过程的日志都打印出来(到stderr).
      </p>
     </dd>

    
    
     <dt id="ini.yar.connect-timeout">
      <em><code class="parameter">yar.connect_timeout</code></em>
      <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
     </dt>

     <dd>

      <p class="para">
       连接超时(毫秒为单位)
      </p>
     </dd>

    
    
     <dt id="ini.yar.timeout">
      <em><code class="parameter">yar.timeout</code></em>
      <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
     </dt>

     <dd>

      <p class="para">
       处理超时(毫秒为单位)
      </p>
     </dd>

    
    
     <dt id="ini.yar.expose-info">
      <em><code class="parameter">yar.expose_info</code></em>
      <span class="type"><a href="language.types.boolean.html" class="type bool">bool</a></span>
     </dt>

     <dd>

      <p class="para">
       如果关闭, 则当通过浏览器访问Server的时候, 不会出现Server Info信息.
      </p>
     </dd>

    

  </dl>

 </p>
</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="yar.installation.html">安装</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="yar.resources.html">资源类型</a></div>
 <div class="up"><a href="yar.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
